<template>
  <div class="info">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="申请管理" name="1">
        <apply v-if="activeName === '1'" />
      </el-tab-pane>
      <el-tab-pane label="发票设置" name="2">
        <setting v-if="activeName === '2'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Apply from './components/invoice/apply'
import Setting from './components/invoice/setting'
export default {
  components: {
    Apply,
    Setting
  },
  data() {
    return {
      activeName: '1',
      radio: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.info {
  padding: 14px 20px;
  .addprogram {
    width: 100%;
    padding: 20px 0;
    .el-button {
      float: right;
    }
  }
}
</style>
